net: sun8i-emac: fix printing NULL character
authorLothar Felten <[email protected]>
Fri, 13 Jul 2018 08:45:26 +0000 (10:45 +0200)
committerJagan Teki <[email protected]>
Mon, 16 Jul 2018 06:57:27 +0000 (12:27 +0530)
commit2f157436335a5507bfeda8097e3f687a31e941ce
tree9b60ff4b7615f0ed80ae2350c310199ffc01f85c
parent30e71ad5b7117d17b547aa39b9d17cf4706f629a
net: sun8i-emac: fix printing NULL character

If the variant is not set and therefore NULL, do not attempt to print
the variant.

Signed-off-by: Lothar Felten <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
Tested-by: Jagan Teki <[email protected]>
drivers/net/sun8i_emac.c